Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add test for toolchain path setup #96

Merged
merged 5 commits into from
Apr 17, 2024

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Apr 14, 2024

  • Custom config test
  • Fix windows tests

To test custom paths and errors the test currently redirects the output of the global logger that is defined in the loglib.

The test can be simplified when the severs initialization and setup process has progressed in it's error handling. For now, the used approach should work for asserting that paths have been set properly.

@ttytm ttytm marked this pull request as ready for review April 14, 2024 14:29
Comment on lines +29 to +31
if c == unsafe { nil } {
return
}
Copy link
Member

@spytheman spytheman Apr 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imho that is a good idea in general (for logging), not just in tests.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

@spytheman spytheman merged commit 80b4a87 into vlang:main Apr 17, 2024
12 checks passed
@ttytm ttytm deleted the tests/add-setup-test branch April 17, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants